#!/bin/bash

# useCollectionTask.ts - 修复refetchInterval访问data
sed -i '163s/if (data && (data.status/if (data?.status/' useCollectionTask.ts

# useExportTask.ts - 修复refetchInterval访问data  
sed -i '135s/if (data && (data.status/if (data?.status/' useExportTask.ts

echo "refetchInterval data access fixed"
